package cn.hsw.manage.role.mapper;

import cn.hsw.manage.role.entity.Role;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.Set;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 李子木
 * @since 2021-11-03 08:56:11
 */
@Mapper
public interface RoleMapper extends BaseMapper<Role> {
    @Select("SELECT role_pid FROM hsw_manage_user_role where user_pid = #{userPid}")
    Set<Long> getRoleIdSet(@Param("userPid")Long userPid);
    Set<String> getRoleCodeSet(@Param("userPid")Long userPid);
}
